package com.leo.imp;

import com.leo.abs.Digit;

public class DecimalSystem extends Digit{

	@Override
	public double coverToNum(String number) {
		double t = Double.parseDouble(number);
		return t;
	}

	@Override
	public String coverToString(double number) {
		String t = Double.toString(number);
		return t;
	}
	@Override
	public boolean include(char ch) {
		String elements = "1234567890.";
		String temp ="";
		temp += ch;
		if (elements.contains(temp))
			return true;
		return false;
	}

}
